

    <link rel="stylesheet" href="/css/custom.css" />
    <?php echo define('GRAY' , '#304674'); ?>
    <style media="screen">

    </style>
    <table width="100%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td></td>
        </tr>
    </table>
    <div class="bdcolor">
          <table width="100%" height="24" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td background="images/dh_back_1.gif">&nbsp;&nbsp;</td>
            <td background="images/dh_back_1.gif">&nbsp;&nbsp;</td>
          </tr>
        </table>


    <div class="max_header" >
        <link rel="stylesheet" href="/css/custom.css" />
        <div class="header" style="height:300px">
            <div class="headinfobox" style="">
                <div class="column" style="border:0px solid red;">
                    <div style="width:150px;height:200px;border:0px solid red;text-align:center;float:left;margin-left:65px;margin-top:65px">
                        <img id="imgs" src="" style="width: 150px; height: 150px; border-radius: 150px;">
                        <span style="text-align:center;color:#FFF;font-size:24px;"><?php echo $_GET['gatename'];?></span>
                        <!-- <span class="jrjl" style="font-size:0.8rem;border:0px solid red"></span> -->
                    </div>
                    <div  style="border:0px solid red;">

                        <span style="font-size:36px;font-weight:normal;color:#fff;position:relative;left:-90px;top:138px">历史记录</span>
                        <!-- <span class="jrjl" style="font-size:0.8rem;border:0px solid red"></span> -->
                    </div>

                    <div class="backhome" style="text-align:right;border:0px solid red;margin-top:0px;margin-right:20px">
                        <a href="/index.php">首页></a>
                    </div>
                    <div class="backhome" style="text-align:right;border:0px solid red;margin-top:160px;margin-right:20px">
                        <a href="/index.php?id=new&gatename=<?php echo $v[1]?>&did=<?php echo $_GET['did']?>">今日记录></a>
                    </div>
                    <!-- <span class="jrjl" style="font-size:0.8rem;border:0px solid red"></span> -->



                </div>



            </div>
        </div>

    <div class="main">
        <!-- <div class="infobox" style="border-bottom:0px solid #1f2c51;padding:5px 10px;">
            <span class="infotitle" style="font-size: 14px;color:#FFF;float:left;font-weight:normal;border-bottom: 0px"><a href="/index.php" style="color:#FFF"><font style="font-size:20px">返回首页</font></a></span>
            <span class="infotitle" style="font-size: 14px;color:#FFF;float:right;font-weight:normal;border-bottom: 0px"><a href="/index.php?id=new&gatename=<?php echo $v[1]?>&did=<?php echo $_GET['did']?>" style="color:#FFF"><font style="font-size:20px">今日记录</font></a></span>
            <br>

        </div>
        <div class="columnpic" style="width:5rem;border:0px solid red;text-align:center;padding-top:50px">
            <img id="imgs" src="" style="width: 5rem; height: 5rem; border-radius: 100%;">
        </div>
        <span class="jrjl" ></span> -->

        <div class="infobox" style="height:420px;border-bottom:0px solid #1f2c51;padding:5px 10px;">
            <div class="infocon">
                <div class="title" style="text-align:left"><img src="http://www.laoyou1.me/version1.3/img/health/takepills.png" /><span>吃药</span></div>
                <div class="upbtn">
                    <div id="takepillsChart"></div>
                    <footer class="chartfooter">
                        <input type="button" class="feedbackbtn" value="<<前七天" onclick="takepills.back()" style="float:left"/>
                        <!-- <span id="takepillsText"></span> -->
                        <input id="qitian" class="feedbackbtn" onclick="takepills.next()" value="后七天>>" type="button" style="float:right" />
                        <input id="genders" class="feedbackbtn" type="hidden" value="" style="float:right;background:<?php echo GRAY;?>">
                        <input id="gender" class="feedbackbtn" type="hidden" value="">
                    </footer>
                </div>
            </div>



        </div>
        <div class="infobox" style="height:480px;border-bottom:0px solid #1f2c51;padding:15px 10px;">
          <div class="infocon">
              <div class="title"><img src="http://www.laoyou1.me/version1.3/img/health/bloodpressure.png" /><span>血压(一周统计)</span></div>
              <div class="title" style="text-align:left;">分布图</div>
              <div class="upbtn">
                  <div id="bloodpressureChart1"></div>
                  <footer class="chartfooter">
                      <input type="button" class="feedbackbtn" value="<<前七天" onclick="bloodpressure1.back()"  style="float:left"/>
                      <span id="bloodpressure1Text"></span>
                      <input id="kaiguan" class="feedbackbtn" onclick="bloodpressure1.next()" value="后七天>>" type="button" style="float:right" />
                      <input id="kgs" class="feedbackbtn" type="hidden" value="" style="float:right;background:<?php echo GRAY;?>">
                      <input id="kg" class="feedbackbtn" type="hidden" value="">
                  </footer>
              </div>

          </div>
        </div>
        <!-- <div class="" style="padding:20px 0">

        </div> -->
        <div class="infobox" style="height:420px;border-bottom:0px solid #1f2c51;padding:5px 10px;">
            <div class="infocon">
              <div class="title" style="text-align:left;">趋势图</div>
              <div class="upbtn">
                  <div id="bloodpressureChart2"></div>
                  <footer class="chartfooter">
                      <input type="button" class="feedbackbtn" value="<<前七天" onclick="bloodpressure2.back()"  style="float:left"/>
                      <!-- <span id="bloodpressure2Text"></span> -->
                      <input id="xueya" class="feedbackbtn" onclick="bloodpressure2.next()" value="后七天>>" type="button" style="float:right"/>
                        <input id="xys" class="feedbackbtn" type="hidden" style="float:right;background:<?php echo GRAY;?>">
                        <input id="yx" class="feedbackbtn" type="hidden">
                  </footer>
              </div>
            </div>
        </div>
        <div class="infobox" style="height:420px;border-bottom:0px solid #1f2c51;padding:5px 10px;">
          <div class="infocon">
              <div class="title"  style="text-align:left"><img src="http://www.laoyou1.me/version1.3/img/health/heartrate.png" /><span>心率</span></div>
              <div class="upbtn">
                  <div id="heartrateChart"></div>
                  <footer class="chartfooter">
                      <input type="button" class="feedbackbtn" value="<<前七天" onclick="heartrate.back()"  style="float:left"/>
                      <!-- <span id="heartrateText"></span> -->
                      <input id="xinlv" class="feedbackbtn" onclick="heartrate.next()" value="后七天>>" type="button" style="float:right" />
                      <input id="xls" class="feedbackbtn" type="hidden" style="float:right;background:<?php echo GRAY;?>" >
                      <input id="xl" class="feedbackbtn" type="hidden">
                  </footer>
                  <!-- <a href="#"><img src="/version1.3/img/upbtn.png" height="50"></a> -->

              </div>
          </div>
        </div>


        <div class="infobox" style="height:430px;border-bottom:10px solid #1f2c51;padding:5px 10px;border:0px solid red">
            <div class="infocon" style="border:0px solid red;padding-bottom:80px" >
                <div class="infotitle" style="font-size: 14px;color:#FFF;float:left;font-weight:normal;border-bottom: 0px;position:relative;left:0px"><img src="http://www.laoyou1.me/version1.3/img/safe/fire.png" />开火做饭</div>
                <div class="upbtn">
                    <div id="openfireChart"></div>

                </div>

            </div>

            <footer class="chartfooter">
                <input type="button" class="feedbackbtn" value="<<前七天" onclick="openfire.back()" style="float:left"/>
                <!-- <span id="openfireText"></span> -->
                <input id="khqitian" class="feedbackbtn" onclick="openfire.next()" value="后七天>>" type="button" style="float:right"/>
                <input id="khs" class="feedbackbtn" type="hidden" value="" style="float:right;background:<?php echo GRAY;?>">
                <input id="kh" class="feedbackbtn" type="hidden" value="">
            </footer>
        </div>




        <div class="infobox" style="height:430px;border-bottom:0px solid #1f2c51;padding:5px 10px;">
          <div class="infocon">
              <div class="title" style="text-align:left"><img src="http://www.laoyou1.me/version1.3/img/safe/pepole.png" /><span>厨房活动</span></div>
              <div class="upbtn">
                  <div id="kitchenChart"></div>
                  <footer class="chartfooter">
                      <input type="button" class="feedbackbtn" value="<<前七天" onclick="kitchen.back()"style="float:left" />
                      <!-- <span id="kitchenText"></span> -->
                      <input id="cfkaiguan" class="feedbackbtn" onclick="kitchen.next()" value="后七天>>" type="button" style="float:right"/>
                      <input id="cfs" class="feedbackbtn" type="hidden" value="" style="float:right;background:<?php echo GRAY;?>">
                      <input id="cf" class="feedbackbtn" type="hidden" value="">
                  </footer>
              </div>
          </div>
        </div>
        <div class="infobox" style="height:430px;border-bottom:0px solid #1f2c51;padding:5px 10px;">
            <div class="infocon">
                <div class="title" style="text-align:left"><img src="http://www.laoyou1.me/version1.3/img/rest/light.png" /><span>室内亮度</span></div>
                <div class="upbtn">
                    <div id="lightChart" style="height: 300px;"></div>
                    <footer class="chartfooter">
                        <input type="button" class="feedbackbtn" value="<<前七天" onclick="light.back()"  style="float:left"/>
                        <!-- <span id="lightText"></span> -->
                        <!-- <span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span> -->
                        <input id="ldqitian" class="feedbackbtn" type="button" value="后七天>>" onclick="light.next()"  style="float:right"/>
                        <input id="lds" class="feedbackbtn" type="hidden" style="float:right;background:<?php echo GRAY;?>">

                        <input id="ld" class="feedbackbtn" type="hidden" value="">
                        <!-- <input id="genders" type="hidden" value=""> -->
                    </footer>
                </div>
            </div>

        </div>

        <div class="infobox" style="height:430px;border-bottom:0px solid #1f2c51;padding:5px 10px;">
      <div class="infocon">
          <div class="title" style="text-align:left"><img src="http://www.laoyou1.me/version1.3/img/rest/pepole.png" /><span>室内活动</span></div>
          <div class="upbtn">
              <div id="indooractivityChart" style="height: 300px;"></div>
              <footer class="chartfooter">
                  <input type="button" class="feedbackbtn" value="<<前七天" onclick="indooractivity.back()" style="float:left" />
                  <!-- <span id="indooractivityText"></span> -->
                  <!-- <span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span> -->

                  <input id="shinei" class="feedbackbtn" onclick="indooractivity.next()" value="后七天>>" type="button" style="float:right"/>
                  <input id="sns" class="feedbackbtn" type="hidden" style="float:right;background:<?php echo GRAY;?>">
                  <input id="sn" class="feedbackbtn" type="hidden">
              </footer>
          </div>
      </div>
    </div>
    <div class="infobox" style="height:420px;border-bottom:0px solid #1f2c51;padding:5px 10px;">
          <div class="infocon" >
              <div class="title" style="text-align:left"><img src="http://www.laoyou1.me/version1.3/img/rest/door.png" /><span>开门</span></div>
              <div class="upbtn" >
                  <div id="dooronoffChart" style="height: 300px;"></div>
                  <footer class="chartfooter" >
                      <input type="button" class="feedbackbtn" value="<<前七天" onclick="dooronoff.back()"  style="float:left"/>
                      <!-- <span id="dooronoffText"></span> -->
                      <!-- <span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span> -->

                      <input id="kmkaiguan" class="feedbackbtn" type="button" onclick="dooronoff.next()" value="后七天>>" style="float:right"/>
                      <input id="kms" class="feedbackbtn" type="hidden" value="" type="hidden" style="float:right;background:<?php echo GRAY;?>">
                      <!-- <span id="dooronoffText"></span> -->
                      <input id="km" class="feedbackbtn" type="hidden" value="">
                  </footer>
              </div>
          </div>
        </div>
        <div class="infobox" style="padding-top:30px;">
          <div class="infocon">
              <div class="headinfobox" style="width:100%; text-align: center;display: block; ">
                  <a href="#" onclick="alert('没开发玩呢')"><img src="http://www.laoyou1.me/version1.3/img/upbtn.png" height="50px"></a>
              </div>
          </div>
        </div>
    </div>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/getdata.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
    <script type="text/javascript" src="/js/ChartBase.js"></script>
    <script type="text/javascript" src="js/safehistory.js"></script>
</div>
</div>
